package com.ouc.yyi.sentinel.app.resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: yyi
 * @date: 2022/8/28 18:30
 * @version: 1.0
 **/
@RestController
public class SentinelResource {

    @GetMapping("sentinel")
    public Map<String, String> getMapping() {
        Map<String, String> map = new HashMap<>();
        map.put("code", "success");
        map.put("info", "hello, this is first sentinel application");
        return map;
    }

}
